package cn.jilian.trans.bizz.web;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import cn.jilian.trans.bizz.service.OrderService;
import cn.jilian.trans.bizz.service.PostService;

@RestController
@RequestMapping("/trans")
public class TransController {
	
	@Autowired
	private OrderService orderService;

	@Autowired
	private PostService postService;
	
	@GetMapping("/post.html")
	public ModelAndView addPost(@RequestParam(name="orderId")Long orderId,HttpSession session) {
		
		ModelAndView mv=new ModelAndView("post/add");
		
		return mv;
	}
	
}
